package org.speedmall.storage.api;

import org.speedmall.storage.api.bo.ProductDecreaseBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hujiaguo
 * @Package org.speedmall.storage.api
 * @date 2024/4/25 17:39:12
 */
@FeignClient(value = "storage", contextId = "product")
public interface ProductFeignClient {
    @PostMapping("/product/increase")
    void increaseStorage(@RequestBody ProductDecreaseBO productDecreaseBO);

    @PostMapping("/product/decrease")
    void decreaseStorage(@RequestBody ProductDecreaseBO productDecreaseBO);

    @PostMapping("/product/decreaseFault")
    void decreaseStorageFault(@RequestBody ProductDecreaseBO productDecreaseBO);
}
